
package net.sf.nwn.jme3;


import com.jme3.math.Vector3f;


public class KeyVector
{
	public Vector3f vec;
    private float key;

    /**
     * Constructor for KeyVector.
     * @param f
     * @param f_0_
     * @param f_1_
     */
    public KeyVector(float x, float y, float z, float aKey)
    {
        vec = new Vector3f(x,y,z);
        key = aKey;
    }

    /**
     * Constructor for KeyVector.
     * @param vector3f_2_
     */
    public KeyVector(KeyVector v)
    {
        this(v.vec.x,v.vec.y,v.vec.z,v.key);
    }

    /**
     * Constructor for KeyVector.
     * @param tuple3f
     */
    public KeyVector(Vector3f tuple3f, float aKey)
    {
        vec = new Vector3f(tuple3f);
        key = aKey;
    }

    /**
     * Constructor for KeyVector.
     */
    public KeyVector()
    {
        vec = new Vector3f();
    }

    /**
     * Gets the key.
     * @return Returns a float
     */
    public float getKey()
    {
        return key;
    }

    /**
     * Sets the key.
     * @param key The key to set
     */
    public void setKey(float key)
    {
        this.key = key;
    }
    
    public String toString()
    {
        return key + "  " + vec.x + " " + vec.y + " " + vec.z;
    }

}
